package com.linwen.javase.desgin_pattern.action.mediator;

/**
 * @ClassName ConcreteColleague2
 * @Description
 * @Author lin
 * @Date 2022/6/29 上午12:50
 * @Version V1.0
 */
//具体同事类
class ConcreteColleague2 extends Colleague {
    public void receive() {
        System.out.println("具体同事类2收到请求。");
    }
    public void send() {
        System.out.println("具体同事类2发出请求。");
        mediator.relay(this); //请中介者转发
    }
}